#include "../simpleexample/simpleexample.h"
#include "../mocks/Mockothermodule.h"
#include "../../inc/unity_fixture.h"

TEST_GROUP(simpleexample);
TEST_SETUP(simpleexample)
{
}

TEST_TEAR_DOWN(simpleexample)
{
}

TEST(simpleexample, test_MyFunc_should_ParseStuffAndCallTheHandlerForNeatFeatures)
{
    NEAT_FEATURES_T ExpectedFeatures = { 1, "NeatStuff" };
 
    ParseStuff_ExpectAndReturn("NeatStuff", 1);
    HandleNeatFeatures_Expect(ExpectedFeatures);
 
    //Run Actual Function Under Test
    MyFunc("NeatStuff");
}

TEST(simpleexample, test_MyFunc_should_ParseStuffAndCallTheHandlerForNeatFeatures_andFail)
{
    NEAT_FEATURES_T ExpectedFeatures = { 0, "NeatStuff" };

    ParseStuff_ExpectAndReturn("NeatStuff", 1);
    HandleNeatFeatures_Expect(ExpectedFeatures);

    //Run Actual Function Under Test
    MyFunc("NeatStuff");
}
